package com.zhongli.devplatform.service.imp.user;

import com.alibaba.fastjson.JSONObject;
import com.zhongli.devplatform.dto.UserBindDTO;
import com.zhongli.devplatform.bean.Res;
import com.zhongli.devplatform.security.qq.QQUserInfo;

public interface UserRegisterService {

    /**
     * 微信用户注册
     * @param wxUserInfo
     * @param role
     */
    Boolean wxRegister(JSONObject wxUserInfo,String role);

    /**
     * 注册qq用户
     * @param qqUserInfo
     */
    Boolean qqRegister(QQUserInfo qqUserInfo, String role);

    /**
     * 绑定用户
     * @param userBindDTO
     * @return
     */
    Boolean bindUser(UserBindDTO userBindDTO);

    /**
     * 获取微信用户信息
     * @param accessToken
     * @param openId
     * @return
     */
    Res getWxUserInfo(String accessToken, String openId);

}
